package cumt.kydd.authoringplatform.controller;

import cumt.kydd.authoringplatform.bean.History;
import cumt.kydd.authoringplatform.service.DeleteHistoryService;
import cumt.kydd.authoringplatform.service.SaveHistoryService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("history")
public class DeleteHistoryController {
    @Resource
    private DeleteHistoryService delHistoryService;

    @GetMapping("del")
    public Map<String, Object> deleteHistory(int is_delete,int flag_now_his) {
        return delHistoryService.deleteHistory(is_delete,flag_now_his);
    }
}
